:root {
  --background-color: #f5f5f5;
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --danger-color: #e74c3c;
  --text-color: #333;
  --border-color: #ddd;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-align: center;
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #2980b9;
}

button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

.todo-app {
  margin-top: 2rem;
}

.add-todo {
  display: flex;
  margin-bottom: 1rem;
}

.add-todo input {
  flex: 1;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px 0 0 4px;
  outline: none;
}

.add-todo button {
  border-radius: 0 4px 4px 0;
}

.todo-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.todo-list li {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  transition: background-color 0.2s;
}

.todo-list li:hover {
  background-color: #f9f9f9;
}

.todo-list li.completed span {
  text-decoration: line-through;
  color: #7f8c8d;
}

.todo-list li label {
  display: flex;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

.todo-list li input[type="checkbox"] {
  margin-right: 0.75rem;
  cursor: pointer;
}

.loading {
  text-align: center;
  color: #7f8c8d;
  margin: 1rem 0;
}

.actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.close-db {
  background-color: var(--danger-color);
}

.close-db:hover {
  background-color: #c0392b;
}

.status {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  color: #7f8c8d;
  font-size: 0.9rem;
  text-align: center;
}

.init-db {
  text-align: center;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 4px;
  border: 1px dashed var(--border-color);
}

.init-db p {
  margin-bottom: 1rem;
  color: #7f8c8d;
} 